home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr53 / pctv4n_1.zip / STATUS.H < prev    next >
C/C++ Source or Header  |  1993-06-10  |  1KB  |  28 lines

  1. // status.h -- TStatusBar class declaration
  2.  
  3. #define UM_CalcParentClientRect WM_USER + 120
  4.  
  5. // Status bar class
  6. _CLASSDEF(TStatusBar)
  7. class TStatusBar: public TWindow {
  8. public:
  9.   TStatusBar(PTWindowsObject AParent);
  10.   virtual void SetupWindow();
  11.   virtual void GetWindowClass(WNDCLASS &AWndClass);
  12.   virtual LPSTR GetClassName() { return "TStatusBar"; }
  13.   void AdjustSize(WORD parentWidth, WORD parentHeight);
  14.   void DisplayString(int resourceID);
  15.   virtual void UMCalcParentClientRect(RTMessage)
  16.     = [WM_FIRST + UM_CalcParentClientRect];
  17.   virtual void WMMenuSelect(RTMessage)
  18.     = [WM_FIRST + WM_MENUSELECT];
  19.   virtual void Paint(HDC PaintDC, PAINTSTRUCT &);
  20. private:
  21.   int currentID;      // Current resource ID
  22.   int childHeight;    // Height of status bar child window
  23.   HMENU hmenuSystem;  // Handle to System menu
  24.   HMENU hmenuFile;    // Handle to File menu                                        
  25.   HMENU hmenuFont;    // Handle to Font menu
  26.   HMENU hmenuWindow;  // Handle to Window menu
  27. };
  28.